/*
 * Copyright (C) 2023 xuexiangjys(xuexiangjys@163.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.xuexiang.templateproject.adapter;

import android.widget.ImageView;

//import androidx.annotation.NonNull;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
//import com.jcds.learneasy.R;
//import com.jcds.learneasy.entity.PageCourse;
import com.xuexiang.templateproject.bean.PageCourse;
import com.xuexiang.templateproject.R;
//import d.e.a.b;
//import kotlin.Metadata;
//import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
public final class SubjectAddAdapter extends BaseQuickAdapter<PageCourse, BaseViewHolder> {
    public SubjectAddAdapter(int i2) {
        super(i2, null);
    }

    /* renamed from: l0 */
    public void convert(@NotNull BaseViewHolder holder, @NotNull PageCourse item) {
        holder.setText(R.id.tvSubject, item.getCourseName());
        Glide.with(getContext()).load(item.getCoverUrl()).into((ImageView) holder.getView(R.id.ivItem));
        holder.setImageResource(R.id.ivTag, R.mipmap.iv_src_subject_add);
        holder.setText(R.id.tvSubjectNum, String.valueOf(item.getProblemSum()));
        holder.setGone(R.id.ivEdit, true);
    }

}